<?php

$rows = isset($_GET['rows']) ? $_GET['rows'] : '10';
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$sidx = isset($_GET['sidx']) ? $_GET['sidx'] : 'id';
$sord = isset($_GET['sord']) ? $_GET['sord'] : 'desc';

$arr = array(
        'page'=> $page,
        'total'=> 100,
        'records'=> 2000,
    );

$start = ($page-1)*$rows;
$end = $start + $rows;
$tmp = array();
for($i = $start; $i < $end ; $i++ ){
	$tmp[] = array('id'=> $i,
                'cell'=> array($i, "name{$i}","email{$i}@domain.com"),
				);
}
$arr['rows'] = $tmp;
echo json_encode($arr);
?>


